#include<iostream>
#include<cstring>
using namespace std;
string arr;
int main()
{
	cin >> arr;
	int len = arr.size();
	if (arr[0] == '-') {
		cout << "-";
	}
	int temp=0;
	for (int i = len-1; i >= 0; i--) {
		if (arr[i] != '0') {
			temp = i;
			break;
		}
	}
	for (int i = temp; i >= 0; i--) {
		if (arr[i] == '-') {
			continue;
		}
		cout << arr[i];
	}
	cout << endl;
	return 0;	
}